package cn.sxjzit.officlal.service.impl;

import cn.sxjzit.officlal.entity.Teacher;
import cn.sxjzit.officlal.mapper.TeacherMapper;
import cn.sxjzit.officlal.service.TeaherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TeacherServiceImpl implements TeaherService {
    @Autowired
    TeacherMapper teacherMapper;
    @Override
    public boolean update(Teacher teacher) {
        return teacherMapper.update(teacher);
    }

    @Override
    public List<Teacher> selectAllTeacher() {
        return teacherMapper.selectAllTeacher();
    }

    @Override
    public Teacher addTeacher(Teacher teacher) {
        return teacherMapper.addTeacher(teacher);
    }

    @Override
    public boolean deleteTeacher(int id) {
        return teacherMapper.deleteTeacher(id);
    }
}
